//
//  CommentController.h
//  yuikemall
//
//  Created by yuike5 yuike5 on 12-2-22.
//  Copyright (c) 2012年 yuike. All rights reserved.
//
#import "WeiboHeader.h"
#import "WeiboNode.h"
#import <UIKit/UIKit.h>
//#import "UIPopoverController.h"
#import "WeiboAtController.h"
#import "UIView+RectSize.h"
#import "WeiboEmotionController.h"
#import "NSStringAdditions.h"
#import "NSString+Extension.h"
#import "Toast+UIView.h"
#import "UITextViewAdditions.h"
#import "WeiboSuggestionController.h"

@class CommentController;

@protocol CommentControllerCallback <NSObject>
-(void) theCommentControllerDismiss:(CommentController*)ctrl weiboid:(int)idx sendx:(BOOL)sendx;
@end


@interface CommentController : UITableViewController<UIActionSheetDelegate, WeiboCommentCreateDelegate>
{
    UITableViewCell* vCell;
    UITextView* vText;
    UILabel* vLabel;
    UIButton* vQuickButton;
    UIButton* vEmotionButton;
    UIButton* vAtButton;
    
    WeiboBase* weibo;
    WeiboNode* node;
    
    WeiboAtController* mWeiboAtController;
    WeiboEmotionController* mWeiboEmotionController;
    WeiboSuggestionController* mWeiboSuggestionController;
    UIPopoverController* mPopoverController;
    
    id<CommentControllerCallback> callback;
}

@property (nonatomic, retain) IBOutlet UITableViewCell* vCell;
@property (nonatomic, retain) IBOutlet UITextView* vText;
@property (nonatomic, retain) IBOutlet UILabel* vLabel;
@property (nonatomic, retain) IBOutlet UIButton* vQuickButton;
@property (nonatomic, retain) IBOutlet UIButton* vEmotionButton;
@property (nonatomic, retain) IBOutlet UIButton* vAtButton;

-(void) setWeibo:(int)weibo node:(WeiboNode*)node;
-(void) setCallback:(id<CommentControllerCallback>)callback_;
-(void) setWeiboSuggests:(NSArray*)array_;
@end
